<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>意见反馈 - {$config.WEB_SITE_TITLE}</title>
    <script src="__PUBLIC__/Home/js/adaptive.js"></script>
    <script src="__PUBLIC__/Home/js/device.min.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/Home/css/reset.css">
    <link rel="stylesheet" href="__PUBLIC__/Home/css/con-header.css">
    <script src="__PUBLIC__/Home/js/mui.min.js"></script>
    <link href="__PUBLIC__/Home/css/mui.min.css" rel="stylesheet"/>

    <style>
        h4,h5{margin-top: 0px;margin-bottom: 0px;}
        input::-webkit-input-placeholder,
        textarea::-webkit-input-placeholder {
            color: #666;font-size: 0.24rem;
        }
        html{background: #fff}
        .content{width: 7.5rem;height: auto;margin: 0 auto;margin-top: 0.88rem;text-align: center;}
        .mui-content{background: #fff;padding: 0.3rem;}
        .mui-content textarea{width: 100%;height: 4rem;border: 1px solid #DEDEDE;resize: none;box-sizing: border-box;outline: none}
        .mui-content button{width: 100%;height: 1rem;background: #01B0B8;color: #fff;border: none;text-align: center;margin-top: 1rem;
            font-size: 0.32rem;outline: none;border-radius: 0.5rem;}

    </style>
</head>
<body>
<div class="content">
    <div class="top">
        <h4>意见反馈</h4>
        <span class="back"></span>
    </div>

    <div class="mui-content">
        <textarea name="" id="" cols="30" rows="10" placeholder="请输入您的反馈意见，以便我们更好的修改" class="con">

        </textarea>
        <button class="submit">提交意见</button>
    </div>

</div>

<script src="__PUBLIC__/Home/js/jquery-1.11.1.js"></script>
<script src="__PUBLIC__/Home/layer_m/layer.js"></script>
<script>
    $(".back").click(function () {
        window.history.back(-1);
    })
   var cont=$('.con').val('')
    $(".submit").click(function(){
        var cont=$('.con').val()
       $.ajax({
            method:'post',
            url:"{:U('User/advice')}",
            dataType:'json',
            data:{
                cont:cont
            },
            success:function(data){
                layer.open({
                content: data.msg
                ,btn: '确定'
              }); 
            }
       })
    })


</script>
</body>
</html>